package com.patelski.common.controller;

import javax.ejb.Remove;

import org.jboss.seam.annotations.Logger;
import org.jboss.seam.framework.EntityHome;
import org.jboss.seam.log.Log;

public class AbstractEntityHomeImpl<T> extends EntityHome<T> {

	@Logger
	protected Log log;

	public AbstractEntityHomeImpl() {
		super();
	}

	@Remove
	public void destroy() {
	}

	public void wire() {
	}

	public boolean isWired() {
		return true;
	}

	public T getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	public Integer getInstanceId() {
		return (Integer) getId();
	}

	public void setInstanceId(Integer id) {
		setId(id);
	}

}